export const ColumnProps = [
    {
        title: '托盘编号',
        dataIndex: 'code',
        key: 'code',
        width: 200,
        ellipsis: true
    },
    {
        title: '托盘名称',
        dataIndex: 'name',
        key: 'name',
        width: 200,
        ellipsis: true
    },
    {
        title: '托盘高度',
        dataIndex: 'height',
        key: 'height',
        width: 200,
        ellipsis: true
    },
    {
        title: '托盘类型',
        dataIndex: 'type',
        key: 'type',
        width: 200,
        ellipsis: true
    },

    {
        title: '创建人',
        dataIndex: 'creator',
        key: 'creator',
        width: 200,
        ellipsis: true
    },
    {
        title: '创建时间',
        dataIndex: 'createTime',
        key: 'createTime',
        width: 300,
        ellipsis: true
    },
    {
        title: '修改人',
        dataIndex: 'updater',
        key: 'updater',
        width: 200,
        ellipsis: true
    },
    {
        title: '修改时间',
        dataIndex: 'updateTime',
        key: 'updateTime',
        width: 300,
        ellipsis: true
    }
];

export const RuleProps = {
    code: [{ required: true, message: '请输入托盘编号' }],
    name: [{ required: true, message: '请输入托盘名称' }],
    type: [{ required: true, message: '请选择托盘类型' }],
    siteCode: [{ required: true, message: '请选择所属站点' }],
    qty: [
        {
            required: true,
            message: '请输入数量'
        },
        {
            pattern: /^\d+$/,
            message: '数量只能输入数字'
        }
    ],
    height: [
        {
            required: true,
            message: '请输入高度'
        },
        {
            pattern: /^\d+$/,
            message: '高度只能输入数字'
        }
    ]
}


export const FormData = {
    id: '',
    code: '',
    name: '',
    type: '',
    siteCode: '',
}


export const FilterItems = [
    {
        type: 'input',
        label: '托盘编号',
        key: 'code'
    },
    {
        type: 'select',
        label: '托盘类型',
        key: 'type',
        data: []
    }
]

export const FormItems = [
    {
        type: 'input',
        label: '托盘编号',
        isShow: true,
        key: 'code'
    },
    {
        type: 'input',
        label: '托盘名称',
        isShow: true,
        key: 'name'
    },
    {
        type: 'input',
        label: '数量',
        isShow: true,
        key: 'qty',
    },
    {
        type: 'input',
        label: '托盘高度',
        isShow: true,
        key: 'height',
    },
    {
        type: 'select',
        label: '托盘类型',
        isShow: true,
        key: 'type',
        data: []
    }
]

export const FilterCondition = {
    total: 0,
    current: 1,
    pageSize: 10,
    code: '',
    type: '',
    siteCode: ''
}
